package geecache

import pb "geecache/geecachepb"

// PeerPicker接口
// 根据key选择远程节点
type PeerPicker interface {
	PickPeer(key string) (PeerGetter, bool)
}

// PeerGetter接口
// 用于从远程节点获取数据
type PeerGetter interface {
	Get(in *pb.Request, out *pb.Response) error
}
